<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<p>Manage Super Company<br />
</p>
<p>&nbsp; </p>
<p>Add Super Company<br />
  <br />
</p>
<form id="form1" name="form1" method="post" action="">
  Super Company Name : 
  <label for="sp_name"></label>
  <input type="text" name="sp_name" id="sp_name" />
  <input type="submit" name="btn_add" id="btn_add" value="Add New Super Company" />
</form>
<p><br />
  Update Super Company<br />
</p>
<form id="form2" name="form2" method="post" action="">
  <table width="600" border="1" cellspacing="0" cellpadding="10">
    <tr>
      <th scope="col">ID Company</th>
      <th scope="col">Name Company</th>
    </tr>
    <?php 
    if(!empty($this->spList)){
    foreach($this->spList as $k=> $v){?>
    <tr>
      <td><?php echo $v['id_sc']?></td>
      <td>
      <input type="text" name="sp_name_update[<?php echo $v['id_sc']?>]" id="sp_name_update_<?php echo $v['id_sc']?>" value="<?php echo $v['name_sp']?>" /></td>
    </tr>
    <?php }}?>
  </table>
  <br />
  <br />
  <input type="submit" name="btn_update" id="btn_update" value="Update Company Name" />
</form>
<p><br />
</p>
</body>
</html>
